<?php
class RegionDao {
	public $table = 'region';
	public function getProvince(){
		return  ClassManager::getSql()->datalist($this->table,'*',"where parent_id=0 order by id ");
	}
	public function getCity($provinceId){
		return ClassManager::getSql()->datalist($this->table,'*',"where parent_id=".intval($provinceId));
	}
	public function get($id){
		return ClassManager::getSql()->oneDataCache($this->table, 'id', intval($id));
	}
}

?>